$(function() {
		
		$('.left-stration li a').click(function(){
			$('.left-stration li a').removeClass('active');
			$(this).addClass('active');
		});
		
		$('.left-nav li').on('click',function(){
			if($(this).hasClass('active')){
				$(this).removeClass('active');
				$(this).next('ul').slideUp();
			}else{
				$(this).addClass('active');
				$(this).siblings('li').removeClass('active');
				$(this).next('ul').slideDown();
				$(this).siblings('li').next('ul').slideUp();
			}
			
		});
		$('.choose a').click(function(){
			$('.choose a').removeClass('active');
			$(this).addClass('active');
		});
		$('.telephone-consultation a').click(function(){
			$('.telephone-consultation a').removeClass('active');
			$(this).addClass('active');
		});
});
  $(function(){
	    var timer=null;
        $('.main-navigation  .a-servies').mouseover(function(){
			clearTimeout(timer);
            $('.energineer-shadow').show();
            $('.energineer-support').show()
        })
        $('.main-navigation  .a-servies').mouseout(function(){
			
			timer=setTimeout(function(){
				$('.energineer-shadow').hide();
            	$('.energineer-support').hide()
			},300)
            
        })
        $('.energineer-support').mouseover(function(){
			clearTimeout(timer);
        	$('.energineer-shadow').show();
            $('.energineer-support').show()
        })
         $('.energineer-support').mouseout(function(){
        	timer=setTimeout(function(){
				$('.energineer-shadow').hide();
            	$('.energineer-support').hide()
			},300)
        })
    })
    function addFavorite2() {
    var url = window.location;
    var title = document.title;
    var ua = navigator.userAgent.toLowerCase();
    if (ua.indexOf("360se") > -1) {
        alert("由于360浏览器功能限制，请按 Ctrl+D 手动收藏！");
    }
    else if (ua.indexOf("msie 8") > -1) {
        window.external.AddToFavoritesBar(url, title); //IE8
    }
    else if (document.all) {
  try{
   window.external.addFavorite(url, title);
  }catch(e){
   alert('您的浏览器不支持,请按 Ctrl+D 手动收藏!');
  }
    }
    else if (window.sidebar) {
        window.sidebar.addPanel(title, url, "");
    }
    else {
  alert('您的浏览器不支持,请按 Ctrl+D 手动收藏!');
    }
}
    
 